const createVectLayer = (map, title="layer", style) => {
    const source = new ol.source.Vector({})
    const layer = new ol.layer.Vector({
        title,
        source,
        style
    })
    map.addLayer(layer)
    return {source, layer}
} 